ArcGIS Runtime SDK for WPF - Library Reference
GenerateCredentialAsync(String,String,String,Action<Credential,Exception>,GenerateTokenOptions) Method
See Also 
ESRI.ArcGIS.Client Namespace > IdentityManager Class > GenerateCredentialAsync Method : GenerateCredentialAsync(String,String,String,Action<Credential,Exception>,GenerateTokenOptions) Method

url
The URL.
userName
The user name.
password
The password.
callback
The method called when the process getting a credential object is complete.
generateTokenOptions
The optional infos concerning the token to generate (referer, proxyURL).
Generates a token credential object asynchronously. You need to provide the service URL, the username and the password. This is a helper method typically called by the UI challenging the user.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub GenerateCredentialAsync( _
   ByVal url As String, _
   ByVal userName As String, _
   ByVal password As String, _
   ByVal callback As Action(Of IdentityManager.Credential,Exception), _
   Optional ByVal generateTokenOptions As IdentityManager.GenerateTokenOptions _
) 

Parameters

url
The URL.
userName
The user name.
password
The password.
callback
The method called when the process getting a credential object is complete.
generateTokenOptions
The optional infos concerning the token to generate (referer, proxyURL).

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.